std::strstr
From Cppreference
| Defined in header
<cstring> | ||
| const char *strstr( const char *dest, const char *src );
| ||
| char *strstr( char *dest, const char *src );
| ||
Finds the first occurrence of the character ch in the character string pointed to by str.
Contents |
Parameters
| dest | - | pointer to the null-terminated character string to examine |
| src | - | pointer to the null-terminated character string to search for |
Return value
pointer to the first character of the found substring in dest, or NULL if no such character is found. If src points to an empty string, dest is returned.
Example
| This section is incomplete |
See also
| finds the first occurrence of a character (function) | |
| finds the last occurrence of a character (function) | |